package com.xlx.openLink.entity.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class Port implements Serializable {


    private String pkId;

    private String pName;

    private String pDevName;

    private String pDevId;

    private String pInOid;

    private String pOutOid;

    private Integer pIndex;

    private String pDevIp;

    private String pStatus;

    private Double pSpeed;

    private String pDescr;

    private Long pInoctets;

    private Long pOutoctets;

    private String pConId;

    private Date pCreateDate;

    private Date pUpdateDate;

    private static final long serialVersionUID = 1111111111L;

    public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }


    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName == null ? null : pName.trim();
    }

    public String getpDevName() {
        return pDevName;
    }

    public void setpDevName(String pDevName) {
        this.pDevName = pDevName == null ? null : pDevName.trim();
    }

    public String getpDevId() {
        return pDevId;
    }

    public void setpDevId(String pDevId) {
        this.pDevId = pDevId == null ? null : pDevId.trim();
    }

    public String getpInOid() {
        return pInOid;
    }

    public void setpInOid(String pInOid) {
        this.pInOid = pInOid == null ? null : pInOid.trim();
    }

    public String getpOutOid() {
        return pOutOid;
    }

    public void setpOutOid(String pOutOid) {
        this.pOutOid = pOutOid == null ? null : pOutOid.trim();
    }

    public Integer getpIndex() {
        return pIndex;
    }

    public void setpIndex(Integer pIndex) {
        this.pIndex = pIndex;
    }

    public String getpDevIp() {
        return pDevIp;
    }

    public void setpDevIp(String pDevIp) {
        this.pDevIp = pDevIp == null ? null : pDevIp.trim();
    }

    public String getpStatus() {
        return pStatus;
    }

    public void setpStatus(String pStatus) {
        this.pStatus = pStatus == null ? null : pStatus.trim();
    }

    public Double getpSpeed() {
        return pSpeed;
    }

    public void setpSpeed(Double pSpeed) {
        this.pSpeed = pSpeed;
    }

    public String getpDescr() {
        return pDescr;
    }

    public void setpDescr(String pDescr) {
        this.pDescr = pDescr == null ? null : pDescr.trim();
    }

    public Long getpInoctets() {
        return pInoctets;
    }

    public void setpInoctets(Long pInoctets) {
        this.pInoctets = pInoctets;
    }

    public Long getpOutoctets() {
        return pOutoctets;
    }

    public void setpOutoctets(Long pOutoctets) {
        this.pOutoctets = pOutoctets;
    }

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getpCreateDate() {
        return pCreateDate;
    }

    public void setpCreateDate(Date pCreateDate) {
        this.pCreateDate = pCreateDate;
    }

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getpUpdateDate() {
        return pUpdateDate;
    }

    public void setpUpdateDate(Date pUpdateDate) {
        this.pUpdateDate = pUpdateDate;
    }

    public String getpConId() {
        return pConId;
    }

    public void setpConId(String devConId) {
        this.pConId = pConId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }

        if (!(o instanceof Port)) {
            return false;
        }

        Port port = (Port) o;

        return new org.apache.commons.lang3.builder.EqualsBuilder()
                .append(pDevId, port.pDevId)
                .append(pIndex, port.pIndex)
                .append(pDevIp, port.pDevIp)
                .isEquals();
    }

    @Override
    public int hashCode() {
        return new org.apache.commons.lang3.builder.HashCodeBuilder(17, 37)
                .append(pDevId)
                .append(pIndex)
                .append(pDevIp)
                .toHashCode();
    }
}